NXP Semiconductors /LPC15xx /ADC0 /CTRL

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CTRL

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0CLKDIV0 (SYNCHRONOUS_MODE)ASYNMODE 0 (DISABLED)MODE10BIT 0 (DISABLED)LPWRMODE 0 (RESERVED)RESERVED0 (CALMODE)CALMODE 0 (RESERVED)RESERVED

ASYNMODE=SYNCHRONOUS_MODE, MODE10BIT=DISABLED, LPWRMODE=DISABLED

Description

A/D Control Register. Contains the clock divide value, enable bits for each sequence and the A/D power-down bit.

Fields

CLKDIV

In synchronous mode only, the system clock is divided by this value plus one to produce the clock for the A/D converter, which should be less than or equal to 50 MHz (up to 100 MHz in 10-bit mode). Typically, software should program the smallest value in this field that yields this maximum clock rate or slightly less, but in certain cases (such as a high-impedance analog source) a slower clock may be desirable. This field is ignored in the asynchronous operating mode.

ASYNMODE

Select clock mode.

0 (SYNCHRONOUS_MODE): Synchronous mode. The ADC clock is derived from the system clock based on the divide value selected in the CLKDIV field. The ADC clock will be started in a controlled fashion in response to a trigger to eliminate any uncertainty in the launching of an ADC conversion in response to any synchronous (on-chip) trigger. In Synchronous mode with the SYNCBYPASS bit set, sampling of the A/D input and start of conversion will initiate exactly 2 system clocks after the leading edge of a (synchronous) trigger pulse.

1 (ASYNCHRONOUS_MODE): Asynchronous mode. The ADC clock is based on the output of the asynchronous ADC clock divider ADCASYNCCLKSEL in the SYSCON block. The frequency of this clock is limited to 50 MHz max (100 MHz in 10-bit mode). In addition, the ADC clock must never be faster than 10x the system clock.

MODE10BIT

Select 10-bit conversion. In 10-bit mode higher conversion rates of up to 100 MHz are supported. A/D resolution is reduced to ten bits, but the clock rate (set via the CLKDIV field) can be increased up to 100 MHz to achieve a conversion rate of up to four million samples per second. The two LSBs of the result data are forced to zero.

0 (DISABLED): Disabled. The 10-bit/high-conversion rate mode is disabled.

1 (ENABLED): Enabled. The 10-bit/high-conversion rate is enabled.

LPWRMODE

Select low-power ADC mode. The analog circuitry is automatically powered-down when no conversions are taking place. When any (hardware or software) triggering event is detected, the analog circuitry is enabled. After the required start-up time, the requested conversion will be launched. Once the conversion completes, the analog-circuitry will again be powered-down provided no further conversions are pending. Using this mode can save an appreciable amount of current (approximately 2.5 mA) when conversions are required relatively infrequently. The penalty for using this mode is an approximately 15 ADC clock delay (30 clocks in 10-bit mode), based on the frequency specified in the CLKDIV field, from the time the trigger event occurs until sampling of the A/D input commences. This mode will NOT power-up the A/D if the ADC_ENA bit is low.

0 (DISABLED): Disabled. The low-power ADC mode is disabled. The analog circuitry remains activated even when no conversions are requested.

1 (ENABLED): Enabled. The low-power ADC mode is enabled.

RESERVED

Reserved.

CALMODE

Writing a 1 to this bit initiates a self-calibration cycle. This bit will be automatically cleared by hardware after the calibration cycle is complete. Other bits of this register may be written to concurrently with setting this bit, however once this bit has been set no further writes to this register are permitted until the full calibration cycle has ended.

RESERVED

Reserved.

Links

()